import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './assets/global.css';

import axios from 'axios'

//配置请求的根路径
axios.defaults.baseURL = "http://localhost:9090/"

//axios请求拦截器
// axios.interceptors.request.use(config => {
//   console.log(config)
//   config.hraders.Authorization = window.sessionStorage.getItem('token')
//   return config
// })

Vue.prototype.$http = axios
Vue.use(VueRouter);
Vue.use(ElementUI);
Vue.config.productionTip = false

new Vue({
  el:'#app',
  router,
  render: h => h(App)
})//.$mount('#app')
